<?php
   require_once('system/dbconn.php');
   require_once('system/myfun.php');
   connect();
    $id=trim($_GET['GL_id']);  
    $title=$_GET['GL_title'];  
    $pic=$_GET['GL_pic'];
    $place=$_GET['GL_place'];
    $intro=$_GET['GL_intro'];
    $adddate=$_GET['GL_adddate'];
    $hint=$_GET['GL_hint'];
    $sql="insert into flower values(null,'$title','$pic','$place','$intro','$adddate','$hint')"; 
  $result=mysql_query($sql) or die('插入失败!'.mysql_error());
  $num=mysql_affected_rows();
  if($num!=1){
    echo "添加失败<br/>";
    echo "<a href='addflower.php'>返回</a>";   
  }else{    
  echo "添加成功！";
  echo "<a href='flowerlist.php'>查看鲜花列表</a>";
  }
    
?>






 















